﻿using System.ComponentModel.DataAnnotations;

namespace IceDog.DNF.Program.BookAPI.Models
{
    /// <summary>
    /// 作者
    /// </summary>
    public class Author
    {
        /// <summary>
        /// 作者编号
        /// </summary>
        public int AuthorId { get; set; }
        /// <summary>
        /// 作者名称
        /// </summary>
        [Required]
        public string Name { get; set; }
    }
}